<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:b="http://bootsfaces.net/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">
		<div id="painel_usuario_camera">
			<b:row>
				<b:column col-lg="4">
					<p:outputLabel value="#{msg.label_aluno}:" for="select_aluno_camera"
						styleClass="bold" />
					<br/>
					<p:selectOneMenu value="#{cameraMBean.alunoSelecionado.id}" id="select_aluno_camera" styleClass="select_aluno_camera" validator="cameraValidator" >
						<f:selectItem noSelectionOption="true" itemLabel="#{msg.label_selecione}" itemValue=""/>
						<f:selectItems value="#{cameraMBean.comboAlunos}" var="aluno" itemLabel="#{aluno.nome}" itemValue="#{aluno.id}" id="alunos_camera"/>
					</p:selectOneMenu>
				</b:column>		
				<b:column col-lg="4">
					<p:outputLabel value="#{msg.label_usuario}:" for="usuario_camera"
						styleClass="bold" />
					<br />
					<p:inputText id="usuario_camera" label="#{msg.label_nome}"
						value="#{cameraMBean.alunoSelecionado.usuarioCamera}" size="43" maxlength="30"
						validator="cameraValidator" />
				</b:column>
				<b:column col-lg="4">
					<p:outputLabel value="#{msg.label_senha}:" for="senha_camera"
						styleClass="bold" />
					<br />
					<p:inputText id="senha_camera" label="#{msg.label_apelido}"
						value="#{cameraMBean.alunoSelecionado.senhaCamera}" size="43" maxlength="6" 
						validator="cameraValidator"/>
				</b:column>	
			</b:row>
			<br/>
			<b:row>
				<b:column col-lg="12">
					<p:commandButton value="#{msg.label_salvar}"
						actionListener="#{cameraMBean.adicionarUsuarioCamera}" styleClass="pull-right"
						update=":formListagemUsuarios:panel_usuario_listagem @form :formMensagem:growl" />
				</b:column>
			</b:row>
		</div>
			
</ui:composition>
